package com.reesechou.service.imp;

import com.reesechou.dao.TagDao;
import com.reesechou.javabean.Tag;
import com.reesechou.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 小星打屁屁 on 2015/3/29.
 * contact me ==>243709758@qq.com
 */
@Service
public class TagServiceImp implements TagService {
    @Autowired
    private TagDao tagDao ;
    @Override
    public int insert(Tag entity) {
        return tagDao.insert(entity) ;
    }

    @Override
    public boolean delete(Tag entity) {
        return false;
    }

    @Override
    public Tag getById(int id) {
        return null;
    }

    @Override
    public List<Tag> getAllTag() {
        return tagDao.findAllTag();
    }

    @Override
    public boolean update(Tag entity) {
        return false;
    }
}
